<?php
/*
===========================================================================

  Copyright (c) 2010-2012 DSPWeb Development Team

  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program.  If not, see http://www.gnu.org/licenses/

  This file is part of DSPWeb source code

===========================================================================
*/

if (!empty($error)) {
	$output .= '
<table cellpadding=0 cellspacing=0 width="45%" border="0" style="border: 1px solid #F00; border-radius: 5px; background-color: #FFA8A8; color: #F00; font-family: Verdana; font-size: 12px;">
  <tr>
    <td style="border-right: 1px solid #F00; padding: 5px; font-weight: bold; font-size: 16px; text-align: center;">!</td>
    <td style="padding: 5px; vertical-align: middle; text-align: center;">Invalid character ID or character doesn\'t exist!</td>
  </tr>
</table></center>';
}
else {
	$output .= '

<table width="85%">
<tr>
<td>
<table width="100%" border="0" style="border: 1px solid #c0c0c0;" cellpadding=0 cellspacing=0>
  <tr>
    <td style="background-color: #F1F3F5; border-bottom: 1px solid #c0c0c0; padding: 5px; font-weight: bold; font-size: 12px; color: #3f6fbc;">Character Profile for <em>'.$character['charname'].'</em></td>
  </tr>
  <tr>
    <td style="padding: 10px;"><table width="100%" border="0">
      <tr>
        <td style="font-size: 10px;">'.$character['charname'].'</td>
      </tr>
      <tr>
        <td style="font-size: 10px;">'.getCharGender($character['charid']) .' '. getCharRace($character['charid']).'</td>
      </tr>
      <tr>
        <td style="font-size: 10px; padding-top: 10px;">'.getJobLevel($character['charid'],getCharJob($character['charid'],"main")).' '. getJobName(getCharJob($character['charid'],"main")).'</td>
      </tr>
      <tr>
        <td style="font-size: 10px;">'.getJobLevel($character['charid'],getCharJob($character['charid'],"sub")).' '. getJobName(getCharJob($character['charid'],"sub")).'</td>
      </tr>
      <tr>
        <td style="font-size: 10px; padding-top: 10px;">Allegiance:</td>
      </tr>
      <tr>
        <td style="font-size: 10px;">'.getCharFaction($character['charid']).'</td>
      </tr>
      <tr>
        <td style="font-size: 10px; padding-top: 10px;">Rank:</td>
      </tr>
      <tr>
        <td style="font-size: 10px;">Rank '.getCharRank($character['charid'],getCharFaction($character['charid'])).'</td>
      </tr>
      <tr>
        <td style="font-size: 10px; padding-top: 10px;">Title:</td>
      </tr>
      <tr>
        <td height="43" style="font-size: 10px;">'.getCharTitle($character['charid']).'</td>
      </tr>
    </table></td>
  </tr>
</table>
</td>
<td>
<table width="100%" border="0" style="border: 1px solid #c0c0c0;" cellpadding=0 cellspacing=0>
  <tr>
    <td style="background-color: #F1F3F5; border-bottom: 1px solid #c0c0c0; padding: 5px; font-weight: bold; font-size: 12px; color: #3f6fbc;">Character Status<em></em></td>
  </tr>
  <tr>
    <td style="padding: 10px;"><table width="100%" border="0">
      <tr>
        <td style="font-size: 10px;">HP</td>
        <td style="font-size: 10px;">'.getCharHP($character['charid']).'</td>
      </tr>
      <tr>
        <td style="font-size: 10px;">MP</td>
        <td style="font-size: 10px;">'.getCharMP($character['charid']).'</td>
      </tr>
      <tr>
        <td style="font-size: 10px;">STR</td>
        <td style="font-size: 10px;"><em>not implemented</em></td>
      </tr>
      <tr>
        <td style="font-size: 10px;">DEX</td>
        <td style="font-size: 10px;"><em>not implemented</em></td>
      </tr>
      <tr>
        <td style="font-size: 10px;">VIT</td>
        <td style="font-size: 10px;"><em>not implemented</em></td>
      </tr>
      <tr>
        <td style="font-size: 10px;">AGI</td>
        <td style="font-size: 10px;"><em>not implemented</em></td>
      </tr>
      <tr>
        <td style="font-size: 10px;">INT</td>
        <td style="font-size: 10px;"><em>not implemented</em></td>
      </tr>
      <tr>
        <td style="font-size: 10px;">MND</td>
        <td style="font-size: 10px;"><em>not implemented</em></td>
      </tr>
      <tr>
        <td style="font-size: 10px;">CHR</td>
        <td style="font-size: 10px;"><em>not implemented</em></td>
      </tr>
      <tr>
        <td style="font-size: 10px; padding-top: 10px;">Exp:</td>
        <td style="font-size: 10px; padding-top: 10px;">'.getCharXP($character['charid'],getCharJob($character['charid'],"main")).'</td>
      </tr>
      <tr>
        <td style="font-size: 10px;">Next Level:</td>
        <td style="font-size: 10px;">'.getMaxXP($character['charid']).'</td>
      </tr>
      <tr>
        <td colspan="2" style="font-size: 10px; padding-top: 10px;">Gil:</td>
        </tr>
      <tr>
        <td colspan="2" style="font-size: 10px;">'.getCharGil($character['charid']).'</td>
        </tr>
    </table></td>
  </tr>
</table>
</td>
</tr>
</table>
<br /><table width="85%" border="0" style="border: 1px solid #c0c0c0;" cellpadding=0 cellspacing=0>
  <tr>
    <td style="background-color: #F1F3F5; border-bottom: 1px solid #c0c0c0; padding: 5px; font-weight: bold; font-size: 12px; color: #3f6fbc;">Character Information</td>
  </tr>
  <tr>
    <td style="padding: 10px;"><center>
      <table width="100%" border="0" style="border: 1px solid #c0c0c0;" cellpadding=0 cellspacing=0>
        <tr>
          <td style="background-color: #f1f3f5; border-bottom: 1px solid #c0c0c0; font-size: 10px; font-weight: bold; padding: 5px;">Equipment</td>
        </tr>
        <tr>
          <td style="padding: 5px; font-size: 12px;"><table width="100%" border="0">
            <tr>
              <td width="25%" style="font-size: 10px; width:25%; text-align: left;">Main:</td>
              <td width="25%" style="font-size: 10px; width:25%; text-align: left;">'.getCharEquipment($character['charid'],"main").'</td>
              <td width="8%" style="font-size: 10px; width:25%; text-align: left;">Sub:</td>
              <td width="42%" style="font-size: 10px; width:25%; text-align: left;">'.getCharEquipment($character['charid'],"sub").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">Ranged:</td>
              <td style="font-size: 10px; width:25%;">'.getCharEquipment($character['charid'],"ranged").'</td>
              <td style="font-size: 10px; width:25%;">Ammo:</td>
              <td style="font-size: 10px; width:25%;">'.getCharEquipment($character['charid'],"ammo").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">Head:</td>
              <td style="font-size: 10px; width:25%;">'.getCharEquipment($character['charid'],"head").'</td>
              <td style="font-size: 10px; width:25%;">Neck:</td>
              <td style="font-size: 10px; width:25%;">'.getCharEquipment($character['charid'],"neck").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">Ear 1:</td>
              <td style="font-size: 10px; width:25%;">'.getCharEquipment($character['charid'],"ear1").'</td>
              <td style="font-size: 10px; width:25%;">Ear 2:</td>
              <td style="font-size: 10px; width:25%;">'.getCharEquipment($character['charid'],"ear2").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">Body:</td>
              <td style="font-size: 10px; width:25%;">'.getCharEquipment($character['charid'],"body").'</td>
              <td style="font-size: 10px; width:25%;">Hands:</td>
              <td style="font-size: 10px; width:25%;">'.getCharEquipment($character['charid'],"hands").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">Ring 1:</td>
              <td style="font-size: 10px; width:25%;">'.getCharEquipment($character['charid'],"ring1").'</td>
              <td style="font-size: 10px; width:25%;">Ring 2:</td>
              <td style="font-size: 10px; width:25%;">'.getCharEquipment($character['charid'],"ring2").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">Back:</td>
              <td style="font-size: 10px; width:25%;">'.getCharEquipment($character['charid'],"back").'</td>
              <td style="font-size: 10px; width:25%;">Waist:</td>
              <td style="font-size: 10px; width:25%;">'.getCharEquipment($character['charid'],"waist").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">Legs:</td>
              <td style="font-size: 10px; width:25%;">'.getCharEquipment($character['charid'],"legs").'</td>
              <td style="font-size: 10px; width:25%;">Feet:</td>
              <td style="font-size: 10px; width:25%;">'.getCharEquipment($character['charid'],"feet").'</td>
            </tr>
          </table>
            </td>
        </tr>
      </table>
	  <br/>
	  <table width="100%" border="0" style="border: 1px solid #c0c0c0;" cellpadding=0 cellspacing=0>
        <tr>
          <td style="background-color: #f1f3f5; border-bottom: 1px solid #c0c0c0; font-size: 10px; font-weight: bold; padding: 5px;">Job Levels</td>
        </tr>
        <tr>
          <td style="padding: 5px; font-size: 12px;"><table width="100%" border="0">
            <tr>
              <td width="25%" style="font-size: 10px; width:25%; text-align: left;">Bard:</td>
              <td width="25%" style="font-size: 10px; width:25%; text-align: left;">'.getJobLevel($character['charid'],"brd").'</td>
              <td width="8%" style="font-size: 10px; width:25%; text-align: left;">Beastmaster:</td>
              <td width="42%" style="font-size: 10px; width:25%; text-align: left;">'.getJobLevel($character['charid'],"bst").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">Black Mage:</td>
              <td style="font-size: 10px; width:25%;">'.getJobLevel($character['charid'],"blm").'</td>
              <td style="font-size: 10px; width:25%;">Blue Mage:</td>
              <td style="font-size: 10px; width:25%;">'.getJobLevel($character['charid'],"blu").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">Corsair:</td>
              <td style="font-size: 10px; width:25%;">'.getJobLevel($character['charid'],"cor").'</td>
              <td style="font-size: 10px; width:25%;">Dark Knight:</td>
              <td style="font-size: 10px; width:25%;">'.getJobLevel($character['charid'],"drk").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">Dragoon:</td>
              <td style="font-size: 10px; width:25%;">'.getJobLevel($character['charid'],"drg").'</td>
              <td style="font-size: 10px; width:25%;">Monk:</td>
              <td style="font-size: 10px; width:25%;">'.getJobLevel($character['charid'],"mnk").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">Ninja:</td>
              <td style="font-size: 10px; width:25%;">'.getJobLevel($character['charid'],"nin").'</td>
              <td style="font-size: 10px; width:25%;">Paladin:</td>
              <td style="font-size: 10px; width:25%;">'.getJobLevel($character['charid'],"pld").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">Puppetmaster:</td>
              <td style="font-size: 10px; width:25%;">'.getJobLevel($character['charid'],"pup").'</td>
              <td style="font-size: 10px; width:25%;">Ranger:</td>
              <td style="font-size: 10px; width:25%;">'.getJobLevel($character['charid'],"rng").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">Red Mage:</td>
              <td style="font-size: 10px; width:25%;">'.getJobLevel($character['charid'],"rdm").'</td>
              <td style="font-size: 10px; width:25%;">Samurai:</td>
              <td style="font-size: 10px; width:25%;">'.getJobLevel($character['charid'],"sam").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">Summoner:</td>
              <td style="font-size: 10px; width:25%;">'.getJobLevel($character['charid'],"smn").'</td>
              <td style="font-size: 10px; width:25%;">Thief:</td>
              <td style="font-size: 10px; width:25%;">'.getJobLevel($character['charid'],"thf").'</td>
            </tr>
			<tr>
              <td style="font-size: 10px; width:25%;">Warrior:</td>
              <td style="font-size: 10px; width:25%;">'.getJobLevel($character['charid'],"war").'</td>
              <td style="font-size: 10px; width:25%;">White Mage:</td>
              <td style="font-size: 10px; width:25%;">'.getJobLevel($character['charid'],"whm").'</td>
            </tr>
			<tr>
              <td style="font-size: 10px; width:25%;">Dancer:</td>
              <td style="font-size: 10px; width:25%;">'.getJobLevel($character['charid'],"dnc").'</td>
              <td style="font-size: 10px; width:25%;">Scholar:</td>
              <td style="font-size: 10px; width:25%;">'.getJobLevel($character['charid'],"sch").'</td>
            </tr>
          </table>
            </td>
        </tr>
      </table>
	  <br/>
	  <table width="100%" border="0" style="border: 1px solid #c0c0c0;" cellpadding=0 cellspacing=0>
        <tr>
          <td style="background-color: #f1f3f5; border-bottom: 1px solid #c0c0c0; font-size: 10px; font-weight: bold; padding: 5px;">Combat Skills</td>
        </tr>
        <tr>
          <td style="padding: 5px; font-size: 12px;"><table width="100%" border="0">
            <tr>
              <td width="25%" style="font-size: 10px; width:25%; text-align: left;">Archery:</td>
              <td width="25%" style="font-size: 10px; width:25%; text-align: left;">'.getCharSkillLevel($character['charid'],"archery").'</td>
              <td width="8%" style="font-size: 10px; width:25%; text-align: left;">Axe:</td>
              <td width="42%" style="font-size: 10px; width:25%; text-align: left;">'.getCharSkillLevel($character['charid'],"axe").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">Club:</td>
              <td style="font-size: 10px; width:25%;">'.getCharSkillLevel($character['charid'],"club").'</td>
              <td style="font-size: 10px; width:25%;">Dagger:</td>
              <td style="font-size: 10px; width:25%;">'.getCharSkillLevel($character['charid'],"dagger").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">Evasion:</td>
              <td style="font-size: 10px; width:25%;">'.getCharSkillLevel($character['charid'],"evasion").'</td>
              <td style="font-size: 10px; width:25%;">Great Axe:</td>
              <td style="font-size: 10px; width:25%;">'.getCharSkillLevel($character['charid'],"great axe").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">Great Katana:</td>
              <td style="font-size: 10px; width:25%;">'.getCharSkillLevel($character['charid'],"great katana").'</td>
              <td style="font-size: 10px; width:25%;">Great Sword:</td>
              <td style="font-size: 10px; width:25%;">'.getCharSkillLevel($character['charid'],"great sword").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">Guarding:</td>
              <td style="font-size: 10px; width:25%;">'.getCharSkillLevel($character['charid'],"guarding").'</td>
              <td style="font-size: 10px; width:25%;">Hand to Hand:</td>
              <td style="font-size: 10px; width:25%;">'.getCharSkillLevel($character['charid'],"hand2hand").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">Katana:</td>
              <td style="font-size: 10px; width:25%;">'.getCharSkillLevel($character['charid'],"katana").'</td>
              <td style="font-size: 10px; width:25%;">Marksmanship:</td>
              <td style="font-size: 10px; width:25%;">'.getCharSkillLevel($character['charid'],"marksmanship").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">Parrying:</td>
              <td style="font-size: 10px; width:25%;">'.getCharSkillLevel($character['charid'],"parrying").'</td>
              <td style="font-size: 10px; width:25%;">Polearm:</td>
              <td style="font-size: 10px; width:25%;">'.getCharSkillLevel($character['charid'],"polearm").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">Scythe:</td>
              <td style="font-size: 10px; width:25%;">'.getCharSkillLevel($character['charid'],"scythe").'</td>
              <td style="font-size: 10px; width:25%;">Shield:</td>
              <td style="font-size: 10px; width:25%;">'.getCharSkillLevel($character['charid'],"shield").'</td>
            </tr>
			<tr>
              <td style="font-size: 10px; width:25%;">Staff:</td>
              <td style="font-size: 10px; width:25%;">'.getCharSkillLevel($character['charid'],"staff").'</td>
              <td style="font-size: 10px; width:25%;">Sword:</td>
              <td style="font-size: 10px; width:25%;">'.getCharSkillLevel($character['charid'],"sword").'</td>
            </tr>
			<tr>
              <td style="font-size: 10px; width:25%;">Throwing:</td>
              <td style="font-size: 10px; width:25%;">'.getCharSkillLevel($character['charid'],"throwing").'</td>
              <td style="font-size: 10px; width:25%;">&nbsp;</td>
              <td style="font-size: 10px; width:25%;">&nbsp;</td>
            </tr>
          </table>
            </td>
        </tr>
      </table>
	  <br/>
	  <table width="100%" border="0" style="border: 1px solid #c0c0c0;" cellpadding=0 cellspacing=0>
        <tr>
          <td style="background-color: #f1f3f5; border-bottom: 1px solid #c0c0c0; font-size: 10px; font-weight: bold; padding: 5px;">Magic Skills</td>
        </tr>
        <tr>
          <td style="padding: 5px; font-size: 12px;"><table width="100%" border="0">
            <tr>
              <td width="25%" style="font-size: 10px; width:25%; text-align: left;">Blue:</td>
              <td width="25%" style="font-size: 10px; width:25%; text-align: left;">'.getCharMagicLevel($character['charid'],"blue").'</td>
              <td width="8%" style="font-size: 10px; width:25%; text-align: left;">Dark:</td>
              <td width="42%" style="font-size: 10px; width:25%; text-align: left;">'.getCharMagicLevel($character['charid'],"dark").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">Divine:</td>
              <td style="font-size: 10px; width:25%;">'.getCharMagicLevel($character['charid'],"divine").'</td>
              <td style="font-size: 10px; width:25%;">Elemental:</td>
              <td style="font-size: 10px; width:25%;">'.getCharMagicLevel($character['charid'],"elemental").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">Enfeebling:</td>
              <td style="font-size: 10px; width:25%;">'.getCharMagicLevel($character['charid'],"enfeebling").'</td>
              <td style="font-size: 10px; width:25%;">Enhancing:</td>
              <td style="font-size: 10px; width:25%;">'.getCharMagicLevel($character['charid'],"enhancing").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">Healing:</td>
              <td style="font-size: 10px; width:25%;">'.getCharMagicLevel($character['charid'],"healing").'</td>
              <td style="font-size: 10px; width:25%;">Ninjitsu:</td>
              <td style="font-size: 10px; width:25%;">'.getCharMagicLevel($character['charid'],"ninjitsu").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">Singing:</td>
              <td style="font-size: 10px; width:25%;">'.getCharMagicLevel($character['charid'],"singing").'</td>
              <td style="font-size: 10px; width:25%;">Stringed:</td>
              <td style="font-size: 10px; width:25%;">'.getCharMagicLevel($character['charid'],"string").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">Summoning:</td>
              <td style="font-size: 10px; width:25%;">'.getCharMagicLevel($character['charid'],"summoning").'</td>
              <td style="font-size: 10px; width:25%;">Wind:</td>
              <td style="font-size: 10px; width:25%;">'.getCharMagicLevel($character['charid'],"wind").'</td>
            </tr>
          </table>
            </td>
        </tr>
      </table>
	  <br/>
	  <table width="100%" border="0" style="border: 1px solid #c0c0c0;" cellpadding=0 cellspacing=0>
        <tr>
          <td style="background-color: #f1f3f5; border-bottom: 1px solid #c0c0c0; font-size: 10px; font-weight: bold; padding: 5px;">Crafting Skills</td>
        </tr>
        <tr>
          <td style="padding: 5px; font-size: 12px;"><table width="100%" border="0">
            <tr>
              <td width="25%" style="font-size: 10px; width:25%; text-align: left;">Alchemy:</td>
              <td width="25%" style="font-size: 10px; width:25%; text-align: left;">'.getCharCraftingLevel($character['charid'],"Alchemy").'</td>
              <td width="8%" style="font-size: 10px; width:25%; text-align: left;">Bonecraft:</td>
              <td width="42%" style="font-size: 10px; width:25%; text-align: left;">'.getCharCraftingLevel($character['charid'],"Bonecraft").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">Clothcraft:</td>
              <td style="font-size: 10px; width:25%;">'.getCharCraftingLevel($character['charid'],"Clothcraft").'</td>
              <td style="font-size: 10px; width:25%;">Cooking:</td>
              <td style="font-size: 10px; width:25%;">'.getCharCraftingLevel($character['charid'],"Cooking").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">Fishing:</td>
              <td style="font-size: 10px; width:25%;">'.getCharCraftingLevel($character['charid'],"Fishing").'</td>
              <td style="font-size: 10px; width:25%;">Goldsmithing:</td>
              <td style="font-size: 10px; width:25%;">'.getCharCraftingLevel($character['charid'],"Goldsmithing").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">Leathercraft:</td>
              <td style="font-size: 10px; width:25%;">'.getCharCraftingLevel($character['charid'],"Leathercraft").'</td>
              <td style="font-size: 10px; width:25%;">Smithing:</td>
              <td style="font-size: 10px; width:25%;">'.getCharCraftingLevel($character['charid'],"Smithing").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">Woodworking:</td>
              <td style="font-size: 10px; width:25%;">'.getCharCraftingLevel($character['charid'],"Woodworking").'</td>
              <td style="font-size: 10px; width:25%;">Riding:</td>
              <td style="font-size: 10px; width:25%;">'.getCharCraftingLevel($character['charid'],"Riding").'</td>
            </tr>
			<tr>
              <td style="font-size: 10px; width:25%;">Synergy:</td>
              <td style="font-size: 10px; width:25%;">'.getCharCraftingLevel($character['charid'],"Synergy").'</td>
              <td style="font-size: 10px; width:25%;">&nbsp;</td>
              <td style="font-size: 10px; width:25%;">&nbsp;</td>
            </tr>
          </table>
            </td>
        </tr>
      </table>
	  <br/>
	  <table width="100%" border="0" style="border: 1px solid #c0c0c0;" cellpadding=0 cellspacing=0>
        <tr>
          <td style="background-color: #f1f3f5; border-bottom: 1px solid #c0c0c0; font-size: 10px; font-weight: bold; padding: 5px;">Ranks</td>
        </tr>
        <tr>
          <td style="padding: 5px; font-size: 12px;"><table width="100%" border="0">
            <tr>
              <td width="25%" style="font-size: 10px; width:25%; text-align: left;">Bastok:</td>
              <td width="25%" style="font-size: 10px; width:25%; text-align: left;">Rank '.getCharRank($character['charid'],"Bastok").'</td>
              <td width="8%" style="font-size: 10px; width:25%; text-align: left;">Windurst:</td>
              <td width="42%" style="font-size: 10px; width:25%; text-align: left;">Rank '.getCharRank($character['charid'],"Windurst").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">San D\'Oria:</td>
              <td style="font-size: 10px; width:25%;"> Rank '.getCharRank($character['charid'],"San D'Oria").'</td>
            </tr>
          </table>
            </td>
        </tr>
      </table>
	  <br/>
	  <table width="100%" border="0" style="border: 1px solid #c0c0c0;" cellpadding=0 cellspacing=0>
        <tr>
          <td style="background-color: #f1f3f5; border-bottom: 1px solid #c0c0c0; font-size: 10px; font-weight: bold; padding: 5px;">Fame</td>
        </tr>
        <tr>
          <td style="padding: 5px; font-size: 12px;"><table width="100%" border="0">
            <tr>
              <td width="25%" style="font-size: 10px; width:25%; text-align: left;">Bastok:</td>
              <td width="25%" style="font-size: 10px; width:25%; text-align: left;">'.getCharFame($character['charid'],"bastok").'</td>
              <td width="8%" style="font-size: 10px; width:25%; text-align: left;">Kazham:</td>
              <td width="42%" style="font-size: 10px; width:25%; text-align: left;">'.getCharFame($character['charid'],"windurst").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">San D\'Oria:</td>
              <td style="font-size: 10px; width:25%;">'.getCharFame($character['charid'],"sandoria").'</td>
              <td style="font-size: 10px; width:25%;">Tenshodo:</td>
              <td style="font-size: 10px; width:25%;">'.getCharFame($character['charid'],"norg").'</td>
            </tr>
			<tr>
              <td style="font-size: 10px; width:25%;">Windurst:</td>
              <td style="font-size: 10px; width:25%;">'.getCharFame($character['charid'],"windurst").'</td>
              <td style="font-size: 10px; width:25%;">Jeuno:</td>
              <td style="font-size: 10px; width:25%;">'.getCharJeunoFame($character['charid']).'</td>
            </tr>
			</table>
            </td>
        </tr>
      </table>
	  <br/>
	  <table width="100%" border="0" style="border: 1px solid #c0c0c0;" cellpadding=0 cellspacing=0>
        <tr>
          <td style="background-color: #f1f3f5; border-bottom: 1px solid #c0c0c0; font-size: 10px; font-weight: bold; padding: 5px;">Current Points</td>
        </tr>
        <tr>
          <td style="padding: 5px; font-size: 12px;"><table width="100%" border="0">
            <tr>
              <td width="25%" style="font-size: 10px; width:25%; text-align: left;">Conquest:</td>
              <td width="25%" style="font-size: 10px; width:25%; text-align: left;">'.getCharPoints($character['charid'],"conquest").'</td>
              <td width="8%" style="font-size: 10px; width:25%; text-align: left;">Imperial Standing:</td>
              <td width="42%" style="font-size: 10px; width:25%; text-align: left;">'.getCharPoints($character['charid'],"imperial standing").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">Limit Points:</td>
              <td style="font-size: 10px; width:25%;"><em>N/A</em></td>
              <td style="font-size: 10px; width:25%;">Merit Points:</td>
              <td style="font-size: 10px; width:25%;"><em>N/A</em></td>
            </tr>
			<tr>
              <td style="font-size: 10px; width:25%;">Leujaoam Sanctum Assault:</td>
              <td style="font-size: 10px; width:25%;">'.getCharPoints($character['charid'],"leujaoam").'</td>
              <td style="font-size: 10px; width:25%;">Mamool Ja Assault:</td>
              <td style="font-size: 10px; width:25%;">'.getCharPoints($character['charid'],"mamool").'</td>
            </tr>
			<tr>
              <td style="font-size: 10px; width:25%;">Lebros Cavern Assault:</td>
              <td style="font-size: 10px; width:25%;">'.getCharPoints($character['charid'],"lebros").'</td>
              <td style="font-size: 10px; width:25%;">Periqia Assault:</td>
              <td style="font-size: 10px; width:25%;">'.getCharPoints($character['charid'],"periqia").'</td>
            </tr>
			<tr>
              <td style="font-size: 10px; width:25%;">Ilrusi Atoll Assault:</td>
              <td style="font-size: 10px; width:25%;">'.getCharPoints($character['charid'],"ilrusi").'</td>
              <td style="font-size: 10px; width:25%;">Nyzul Island Assault:</td>
              <td style="font-size: 10px; width:25%;">'.getCharPoints($character['charid'],"nyzul").'</td>
            </tr>
          </table>
            </td>
        </tr>
      </table>
	  <br/>
	  <table width="100%" border="0" style="border: 1px solid #c0c0c0;" cellpadding=0 cellspacing=0>
        <tr>
          <td style="background-color: #f1f3f5; border-bottom: 1px solid #c0c0c0; font-size: 10px; font-weight: bold; padding: 5px;">Max Inventory Size</td>
        </tr>
        <tr>
          <td style="padding: 5px; font-size: 12px;"><table width="100%" border="0">
            <tr>
              <td width="25%" style="font-size: 10px; width:25%; text-align: left;">Personal:</td>
              <td width="25%" style="font-size: 10px; width:25%; text-align: left;">'.charMaxInventory($character['charid'],"inventory").'</td>
              <td width="8%" style="font-size: 10px; width:25%; text-align: left;">Satchel:</td>
              <td width="42%" style="font-size: 10px; width:25%; text-align: left;">'.charMaxInventory($character['charid'],"satchel").'</td>
            </tr>
            <tr>
              <td style="font-size: 10px; width:25%;">Mog Safe:</td>
              <td style="font-size: 10px; width:25%;">'.charMaxInventory($character['charid'],"safe").'</td>
              <td style="font-size: 10px; width:25%;">Mog Locker:</td>
              <td style="font-size: 10px; width:25%;">'.charMaxInventory($character['charid'],"locker").'</td>
            </tr>
			<tr>
              <td style="font-size: 10px; width:25%;">Sack:</td>
              <td style="font-size: 10px; width:25%;">'.charMaxInventory($character['charid'],"sack").'</td>
            </tr>
          </table>
            </td>
        </tr>
      </table>
    </center></td>
  </tr>
</table></center>
';
}
?>